package com.niit.springbootshop.service.impl;

import com.niit.springbootshop.dao.OrdersDao;
import com.niit.springbootshop.entity.Orderitem;
import com.niit.springbootshop.entity.Orders;
import com.niit.springbootshop.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: springboot-demo
 * @description:
 * @author: hanliang
 * @create: 2021-05-12 23:34
 **/
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    OrdersDao ordersDao;

    @Override
    public int insertOrders(Orders orders) {
        return ordersDao.insertOrders(orders);
    }

    @Override
    public int insertOrderItem(Orderitem orderItem) {
        return ordersDao.insertOrderItem(orderItem);
    }
}
